import request from "@/api/request";
import { type AxiosRequestConfig } from "axios";
import { type DeepRequired } from "../../interface";

/**
 * /procurementContract/{contractId}
 */
export function getProcurementContractByContractId(params: GetProcurementContractByContractIdParams, config?: AxiosRequestConfig) {
    return request.get<DeepRequired<any>>(`/procurementContract/${params.contractId}`, config);
}

export interface GetProcurementContractByContractIdParams {
    contractId: string;
}
